BaseAuthStore

open class BaseAuthStore(baseToken: String?)

The SDKS's method of storing Pocketbase authentication tokens

This can be extended to implement your own custom ways to store authentication data, see or docs for an example. TODO: Put it in the docs...

Parameters

baseToken

The base Pocketbase authentication token to be stored when this object is created.

Constructors

Link copied to clipboard
constructor(baseToken: String?)

Properties

Link copied to clipboard

The Pocketbase authentication token.

Functions

Link copied to clipboard
open fun clear()

Clears the current Pocketbase token from the store.

Link copied to clipboard
open fun save(token: String?)

Sets the current Pocketbase token to a new one.